class common {
    public static stageW = 0;
    public static stageH = 0;
    
    public static areaId:number = 0;
    public static gameId:number = 0;
    public static chnltype = 7;
    public static version = "0.0.1";

    public static configReady = false;

    //用户信息
    public static userInfo = {
        "head":"",
        "nickName":"",
        "sex":0,
        "numId":0,
        "userId":0,
        "exp":0,
        "lv":0,
        "title":"",
        "maxExp":0,
        "energy":0,
        "login":-1,//-1:不是第一次登陆，0：第一次登陆，1：种植完成阶段
        "today":-1,//今天是否是第一次登陆,0:第一次登陆
        "petId":0,
        "petStatus":0
    }
    //用户种植信息表
    public static plantIndex = [0,0,0,0,0,0,0,0,0];
    public static userPlant = [];

    public static otherPlant = [];

    public static configUrl = {
        "login":"member/thirdlogin",
        "createOrder":"pay/createOrder",//创建订单
        "logisticsInfo":"deliver/deliverDo",//物流内页，详情页
        "wxConfig":"member/jsAuth"//微信js-sdk接口
    }
    public static mqTopic = {
        "signList":"User/HD_SignList",//签到列表
        "sign":"User/HD_UserSign",//进行签到
        "recordList":"User/HD_TradeList",//购买记录
        "getEnergy":"User/HD_UpdateEnergyById",//获取能量值
        "plantList":"Game/HD_PlantList",//种植表
        "shopList":"Game/HD_ShopList",//商店表 类型：0/鲜花种子 1/多肉种子  2/宠物 3/能量
        "wareHouseList":"User/HD_UserDepotList",//用户仓库
        "plantBotany":"Game/HD_PlantAction",//种植植物
        "plantDetail":"Game/HD_PlantDetail",//植物详情
        "deleteBotany":"Game/HD_UprootAction",//删除植物
        "toWater":"Game/HD_WaterAction",//进行浇水操作 wType:0,能量浇水
        "getHarvest":"Game/HD_GainAction",//收获植物
        "rankVersion":"User/HD_GetCharListVersion",//获取排行榜版本号
        "rankList":"User/HD_ChartList",//排行榜/好友排行榜
        "friendList":"User/HD_UserGmList",//获取好友列表
        "addFriend":"User/HD_AddGm",//添加好友
        "deleteFriend":"User/HD_DeleteGm",//删除好友
        "searchFriend":"User/HD_GetGmById",//查找好友
        "addFriendList":"User/HD_GmList",//附近好友列表
        "exGoods":"User/HD_ApplyDeliver",//申请发货
        "logisticsList":"User/HD_DeliverList",//物流信息列表
        "addressList":"User/HD_ContactList",//地址列表
        "editAddress":"User/HD_EditContact",//编辑地址
        "deleteAddress":"User/HD_DeleteContact",//删除地址
        "userInfo":"User/HD_GetUserInfo",//获取用户信息
        "socketLogin":"User/HD_gameLogin",
        "interactList":"User/HD_InteractList",//交互列表
        "awardList":"Game/HD_AwardList",//邀请奖品列表
        "awardExchange":"User/HD_ExchangeAward"//兑换奖品
    }
    public static onTopic = {
        "update":"User/OnUpdateUser",//修改用户信息
        "upEnergy":"User/OnUpEnergy",//修改能量值
        "firstHarvest":"User/OnFirstGain"//第一次收获提醒
    }
}